package me.buick.util.snmp.core.pojo;

import java.io.Serializable;
/**
 * Version 1.0
 * 
 * @author buick
 *
 */
public class DiskUsagePojo implements Serializable {
	
	private static final long serialVersionUID = 1895682332674879075L;
	
	private String partitionName;
	private long partitionSize;
	private long partitionUsed;
	
	public double getPartionUsagePerc() {
		if(partitionSize <= 0 )
			return 0;
		return (((double)partitionUsed) / ((double)partitionSize))*100;
	}
	public String getPartitionName() {
		return partitionName;
	}
	public void setPartitionName(String partitionName) {
		this.partitionName = partitionName;
	}
	public long getPartitionSizeBytes() {
		return partitionSize;
	}
	public void setPartitionSizeBytes(long partitionSize) {
		this.partitionSize = partitionSize;
	}
	public long getPartitionUsedBytes() {
		return partitionUsed;
	}
	public void setPartitionUsedBytes(long partitionUsed) {
		this.partitionUsed = partitionUsed;
	}
	
}
